import type { HotParams, HotResult } from '@/types/hot'
import { request } from '@/utils/request'

// 特惠推荐-小程序
// GET
// /hot/preference
export const getHotPreference = (data: HotParams) => {
  return request<HotResult>('/hot/preference', 'GET', data)
}
/**
 * 爆款推荐-小程序
 * GET
 * /hot/inVogue
 */
export const getHotInVogue = (data: HotParams) => {
  return request<HotResult>('/hot/inVogue', 'GET', data)
}
/**
 * 一站买全-小程序
 * GET
 *hot/oneStop
 */
export const getHotOneStop = (data: HotParams) => {
  return request<HotResult>('/hot/oneStop', 'GET', data)
}
// 新鲜好物-小程序
// GET
// /hot/new
export const getHotNew = (data: HotParams) => {
  return request<HotResult>('/hot/new', 'GET', data)
}
